cmake_minimum_required(VERSION 3.17)
project(TiffReader)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -DNODEBUG")
add_definitions(-D_WIN32_WINNT=0x0601)

find_package(OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS})
link_libraries(${OpenCV_LIBS})

add_subdirectory(OpenXLSX)
link_libraries(OpenXLSX-static)

include_directories(public)

add_executable(TiffReader Reader.cpp public/public.cpp) # 浮点图像(包括合成图,LASNR图)图片阅读器代码
add_executable(TiffMaker Maker.cpp public/public.cpp) # 合成高动态图，合成代码
add_executable(bmp2png bmp2png.cpp public/public.cpp) # bmp压缩png代码
add_executable(pngMatch pngMatch.cpp public/public.cpp) # 逐像素比较俩个图片异同代码
add_executable(LASNR LASNR.cpp public/public.cpp) # 对浮点图像，计算局部信噪比代码
add_executable(GaussBlur GaussBlur.cpp public/public.cpp) # 对浮点图像，进行高斯模糊
add_executable(phi phi.cpp public/public.cpp) # 计算光通量积分和光亮度估计代码，同为损伤标记（绘图软件）ui的后处理程序
#add_executable(LockFreeLinkedQueueTest LockFreeLinkedQueueTest.cpp)
add_executable(Finder Finder.cpp public/public.cpp) # 损伤标记（绘图软件）ui
add_executable(FinderPlus FinderPlus.cpp public/public.cpp) # 损伤标记（绘图软件）ui的后处理程序
target_compile_definitions(Finder PRIVATE OPENXLSX_STATIC_DEFINE)
target_compile_definitions(FinderPlus PRIVATE OPENXLSX_STATIC_DEFINE)
target_compile_definitions(TiffReader PRIVATE OPENXLSX_STATIC_DEFINE)
target_compile_definitions(phi PRIVATE OPENXLSX_STATIC_DEFINE)

